<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="node_modules/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">
你的生日：{{birth}}
</div>
<script>
   var  dataobj={
       name:"柯震南",
           num:0,
       birthday:1565588398790
   };



    var vm = new Vue({
        el:"#app",
       data:dataobj,

            computed:{
                birth(){
                    var d = new Date(this.birthday);
                    return d.getFullYear() + "-" + d.getMonth() + "-" + d.getDate();
                }

            }





    })

</script>


</body>
</html>